Ext.namespace('system');
system.tryPerformance = function(config) {
	Ext.applyIf(this, config);
	this.initUIComponents();
	system.tryPerformance.superclass.constructor.call(this);
};

Ext.extend(system.tryPerformance, Ext.Panel, {
	initUIComponents : function() {
				
				Ext.apply(this, 
//*********以下内容使用formbuilder生成***************	
				
				
				
				

				
				
				
{
title:"ccc",
height:1000,
width:1000,
layout:"border",
items:[{
    id:"rootTabPanel",
    region:"center",
    width:1000,
    xtype:"tabpanel",
    activeTab:0,
    items:[{
        xtype:"panel",
        title:"DoS",
        layout:"border",
        hideMode:"offsets",
        forceLayout:true,
        height:600,
        items:[{
            xtype:"fieldset",
            autoHeight:true,
            region:"west",
            layout:"fit",
            autoWidth:true,
            items:[{
                xtype:"form",
                autoHeight:true,
                autoWidth:true,
                id:"formDoSType",
                items:[{
                    xtype:"fieldset",
                    title:"攻击类型",
                    autoHeight:true,
                    autoWidth:true,
                    items:[{
                        xtype:"radio",
                        fieldLabel:"Label",
                        boxLabel:"UDP Flood W",
                        name:"radio",
                        inputValue:"radiovalue",
                        id:"radioUDPW"
                      },{
                        xtype:"radio",
                        fieldLabel:"Label",
                        boxLabel:"UDP Flood H",
                        name:"radio",
                        inputValue:"radiovalue",
                        id:"radioUDPH"
                      },{
                        xtype:"radio",
                        fieldLabel:"Label",
                        boxLabel:"SYN Flood W",
                        name:"radio",
                        inputValue:"radiovalue",
                        id:"radioSYNW"
                      },{
                        xtype:"radio",
                        fieldLabel:"Label",
                        boxLabel:"SYN Flood H",
                        name:"radio",
                        inputValue:"4",
                        id:"radioSYNH"
                      }]
                  }]
              },{
                id:"udpFormW",
                hideMode:"offsets",
                xtype:"form",
                hidden:false,
                autoWidth:true,
                autoHeight:true,
                items:[{
                    id:"udpTextLp",
                    xtype:"numberfield",
                    value:1000,
                    fieldLabel:"数据包长度(Bytes)",
                    decimalPrecision:3
                  },{
                    id:"udpTextBw",
                    xtype:"numberfield",
                    decimalPrecision:3,
                    value:4,
                    fieldLabel:"瓶颈带宽(Mbps)"
                  },{
                    id:"udpTextIr",
                    xtype:"numberfield",
                    decimalPrecision:3,
                    value:0.5,
                    fieldLabel:"正常请求平均间隔(s)"
                  },{
                    id:"udpTextIa",
                    xtype:"numberfield",
                    decimalPrecision:3,
                    value:0.01,
                    fieldLabel:"攻击请求平均间隔(s)"
                  },{
                    id:"udpTextLt",
                    xtype:"numberfield",
                    decimalPrecision:3,
                    value:5,
                    fieldLabel:"一次会话传输的数据总量(mBytes)"
                  },{
                    id:"udpTextT",
                    xtype:"numberfield",
                    decimalPrecision:10,
                    fieldLabel:"平均停留时间"
                  },{
                    id:"udpTextE",
                    xtype:"numberfield",
                    decimalPrecision:10,
                    fieldLabel:"UDP Flood攻击绩效"
                  },{
                    xtype:"numberfield",
                    fieldLabel:"SYN Flood",
                    name:"textvalue"
                  },{
                    xtype:"numberfield",
                    decimalPrecision:3,
                    fieldLabel:"Number",
                    name:"numbervalue"
                  }]
              },{
                xtype:"form",
                id:"synFormW",
                hideMode:"offsets",
                hidden:true,
                autoWidth:true,
                autoHeight:true,
                items:[{
                    id:"synTextM",
                    xtype:"numberfield",
                    decimalPrecision:3,
                    value:15,
                    fieldLabel:"半开队列长度"
                  },{
                    id:"synTextSa",
                    xtype:"numberfield",
                    decimalPrecision:3,
                    value:10,
                    fieldLabel:"半开连接超时(s)"
                  },{
                    id:"synTextDelay",
                    xtype:"numberfield",
                    decimalPrecision:3,
                    value:0.05,
                    fieldLabel:"客户端到服务器的传输时延(s)"
                  },{
                    id:"synTextIr",
                    xtype:"numberfield",
                    decimalPrecision:3,
                    value:0.5,
                    fieldLabel:"正常请求平均间隔(s)"
                  },{
                    id:"synTextIa",
                    xtype:"numberfield",
                    value:0.01,
                    fieldLabel:"攻击请求平均间隔(s)"
                  },{
                    id:"synTextTi",
                    xtype:"numberfield",
                    decimalPrecision:3,
                    fieldLabel:"重试间隔(s)",
                    value:"5"
                  },{
                    id:"synButtonCalc",
                    text:"计算",
                    xtype:"button"
                  },{
                    id:"synTextPb",
                    xtype:"numberfield",
                    decimalPrecision:10,
                    fieldLabel:"拒绝服务概率"
                  },{
                    id:"synTextE",
                    xtype:"numberfield",
                    decimalPrecision:10,
                    fieldLabel:"SYN Flood攻击绩效"
                  }]
              }]
          },{
            xtype:"panel",
            region:"center",
            border:false,
            items:[{
                id:"buttonCalc",
                text:"计算",
                xtype:"button"
              },{
                text:"保存",
                xtype:"button",
                id:"buttonSave"
              },{
                text:"读取历史",
                xtype:"button",
                id:"buttonListHistory"
              }]
          },{
            xtype:"panel",
            region:"east",
            width:500,
            height:600,
            layout:"accordion",
            items:[{
                xtype:"panel",
                title:"绩效曲线",
                id:"panelChart",
				layout:'fit',
                region:"center",
                height:300
              },{
                id:"panelGrid",
                title:"绩效结果",
                xtype:"panel",
                region:"north",
                height:300
              }]
          }]
      },{
        xtype:"panel",
        title:"蠕虫"
      },{
        title:"SYN Flood",
        frame:true,
        layout:"border",
        xtype:"panel"
      },{
        title:"绩效对比",
        width:600,
        xtype:"panel",
        layout:"border",
        id:"panelCompare",
        items:[{
            frame:true,
            region:"center",
            xtype:"form",
            width:200,
            height:100,
            items:[{
                xtype:"numberfield",
                decimalPrecision:3,
                value:1000,
                fieldLabel:"数据包长度(Bytes)",
                id:"compareTextLp"
              },{
                xtype:"numberfield",
                decimalPrecision:3,
                value:4,
                fieldLabel:"瓶颈带宽(Mbps)",
                id:"compareTextBw"
              },{
                xtype:"numberfield",
                decimalPrecision:3,
                value:"15",
                fieldLabel:"半开队列长度",
                id:"compareTextM"
              },{
                xtype:"numberfield",
                decimalPrecision:3,
                value:"10",
                fieldLabel:"半开连接超时时间(s)",
                id:"compareTextSynSa"
              },{
                xtype:"numberfield",
                decimalPrecision:3,
                value:0.5,
                fieldLabel:"正常请求平均间隔(s)",
                id:"compareTextIr"
              },{
                xtype:"numberfield",
                decimalPrecision:3,
                value:"10",
                fieldLabel:"攻击强度从(次/s)",
                id:"compareTextMinLambdaA"
              },{
                xtype:"numberfield",
                decimalPrecision:3,
                value:"100",
                fieldLabel:"至(次/s)",
                id:"compareTextMaxLambdaA"
              },{
                xtype:"numberfield",
                decimalPrecision:3,
                value:5,
                fieldLabel:"重试间隔(s)",
                id:"compareTextTi"
              },{
                xtype:"numberfield",
                decimalPrecision:3,
                value:5,
                fieldLabel:"一次会话传输的数据总量(mBytes)",
                id:"compareTextLt"
              },{
                id:"compareButtonCalc",
                text:"计算",
                xtype:"button"
              },{
                xtype:"numberfield",
                decimalPrecision:3,
                fieldLabel:"平均停留时间"
              },{
                xtype:"numberfield",
                fieldLabel:"UDP Flood攻击绩效"
              }]
          },{
            xtype:"panel",
            title:"Panel",
            region:"south",
            height:350,
            id:"comparePanelChart"
          }]
      },{
        title:"博弈",
        width:600,
        xtype:"panel",
        layout:"border",
        items:[{
            title:"zz",
            frame:true,
            region:"center",
            xtype:"form",
            width:200,
            height:100,
            items:[{
                xtype:"numberfield",
                decimalPrecision:3,
                value:1000,
                fieldLabel:"数据包长度(Bytes)",
                id:"gameTextLp"
              },{
                xtype:"numberfield",
                decimalPrecision:3,
                value:10,
                fieldLabel:"半开连接超时(s)",
                id:"gameTextSa"
              },{
                xtype:"numberfield",
                decimalPrecision:3,
                value:0.5,
                fieldLabel:"正常请求平均间隔(s)",
                id:"gameTextIr"
              },{
                xtype:"numberfield",
                decimalPrecision:3,
                value:10,
                fieldLabel:"一次会话传输的数据总量(mBytes)",
                id:"gameTextLt"
              },{
                xtype:"numberfield",
                decimalPrecision:3,
                fieldLabel:"重试间隔(s)",
                value:"5",
                id:"gameTextTi"
              },{
                xtype:"numberfield",
                decimalPrecision:3,
                fieldLabel:"攻击方拥有的傀儡主机数",
                name:"numbervalue",
                value:"5",
                id:"gameTextZ"
              },{
                xtype:"numberfield",
                decimalPrecision:3,
                fieldLabel:"每台傀儡主机可发起的UDP Flood攻击强度(次/s)",
                name:"numbervalue",
                value:"20",
                id:"gameTextRudp"
              },{
                xtype:"numberfield",
                decimalPrecision:3,
                fieldLabel:"每台傀儡主机可发起的SYN Flood攻击强度(次/s)",
                name:"numbervalue",
                value:"1",
                id:"gameTextRsyn"
              },{
                xtype:"numberfield",
                decimalPrecision:3,
                fieldLabel:"防护方总投入",
                name:"numbervalue",
                value:"5",
                id:"gameTextI"
              },{
                xtype:"numberfield",
                decimalPrecision:3,
                fieldLabel:"半开队列单位成本",
                name:"numbervalue",
                value:"1",
                id:"gameTextUq"
              },{
                xtype:"numberfield",
                decimalPrecision:3,
                fieldLabel:"带宽单位成本",
                name:"numbervalue",
                value:"2",
                id:"gameTextUb"
              },{
                text:"博弈",
                xtype:"button",
                id:"gameButtonCalc"
              },{
                xtype:"numberfield",
                decimalPrecision:3,
                fieldLabel:"平均停留时间"
              },{
                xtype:"numberfield",
                decimalPrecision:3,
                fieldLabel:"UDP Flood攻击绩效"
              }]
          },{
            xtype:"textarea",
            region:"south",
            height:200,
            id:"gameTextMatrix"
          }]
      }]
  }]
}				
			
				
				
				
				
				
				
				
				
				
				








//*********以上内容使用formbuilder生成***************
);//Ext.apply(







		
}//initUIComponents
}//Ext.extend
)//Ext.extend